package io.renren.vo;

import io.renren.entity.SysDictEntity;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
public class ProvinceVo {

    /**
     * 字典名称
     */
    private String name;
    /**
     * 字典类型
     */
    private String type;
    /**
     * 字典码
     */
    private String code;
    /**
     * 字典值
     */
    private String value;


    List<CityVo> cities;

    public static ProvinceVo convertFor(SysDictEntity sysDictEntity) {
        ProvinceVo vo = new ProvinceVo();
        BeanUtils.copyProperties(sysDictEntity, vo);
        return vo;
    }
}
